/**
 * @file 路由文件
 *
 * @author zxq
 * @date 2021-02-11
 */

import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    mode: 'history',
    base: '/pages/',
    routes: [
        {
            path: '/',
            component: () => import('@/pages/login')
        },
        // 登录
        {
            path: '/login',
            component: () => import('@/pages/login')
        },
        // 科目编辑
        {
            path: '/subjects',
            component: () => import('@/pages/subjects/index')
        },
        // 客户档案
        {
            path: '/companies',
            component: () => import('@/pages/companies/index')
        },
        {
            path: '/companies/batchAdd',
            name: 'batchAddCompanies',
            component: () => import('@/pages/companies/batchAdd/index')
        },
        // 财务自动化 / 信息上传列表页
        {
            path: '/upload-info/list',
            component: () => import('@/pages/uploadInfo/list/index')
        },
        // 财务自动化 / 信息核对列表页
        {
            path: '/check-list',
            component: () => import('@/pages/uploadInfo/list2/index')
        },
        // 信息上传 上传资料页
        {
            path: '/upload-info/upload-info-page',
            component: () => import('@/pages/uploadInfo/upload')
        },
        // 信息上传 编辑资料页
        {
            path: '/upload-info/edit-info-page',
            component: () => import('@/pages/uploadInfo/editInfo')
        },
        // 信息上传 查看详情
        {
            path: '/upload-info/view-detail-page',
            component: () => import('@/pages/uploadInfo/detail/index')
        },
        // 智能做账
        {
            path: '/smart-bill',
            component: () => import('@/pages/smartBill/index')
        },
        // 智能做账-查看凭证
        {
            path: '/smart-bill/voucher-detail',
            name: 'voucherDetail',
            component: () => import('@/pages/smartBill/voucherDetail')
        },
        // 智能做账-完善信息
        {
            path: '/smart-bill/complete',
            name: 'smartManualComplete',
            component: () => import('@/pages/smartBill/complete/index')
        },
        {   path: "/roll-back",
            name: 'rollback',
            component: () => import('@/pages/smartBill/rollback/index')
        },
        // 一键报税 - 企业增值税      
        {
            path: '/one-key-bill',
            component: () => import('@/pages/oneKeyBill/index')
        },
        // 一键报税 - 企业增值税 - 详情
        {
            path: '/one-key-bill/value-added-tax-detail',
            name: 'valueAddedTaxDetail',
            component: () => import('@/pages/oneKeyBill/valueAddedTaxDetail/index')
        },
        // 一键报税 - 查看税金展示报税结果
        {
            path: '/one-key-bill/value-added-tax-detail/check-report-result',
            name: 'checkTaxReportResult',
            component: () => import('@/pages/oneKeyBill/checkReportResult/showPicture')
        },
        // 一键报税-企业所得税
        {
            path: '/one-key-bill/corporate-income-tax',
            component: () => import('@/pages/oneKeyBill/corporate-income-tax/index')
        },
        // 一键报税-企业所得税 查看所得税详情
        {
            path: '/one-key-bill/corporate-income-tax/detail',
            name: 'incomeTaxDetail',
            component: () => import('@/pages/oneKeyBill/incomeTaxDetail/index')
        },
        // 一键报税-个人所得税
        {
            path: '/one-key-bill/people-income-tax',
            component: () => import('@/pages/oneKeyBill/people-income-tax/index')
        },
        // 详情页 - 个人所得税
        {
            name: 'peopleIncomeTaxSalarys',
            path: '/one-key-bill/people-income-tax-salarys',
            component: () => import('@/pages/oneKeyBill/people-income-tax/salaryPersonInfoTable')
        },
        // 一键报税-个人经营税
        {
            path: '/one-key-bill/people-manage-tax',
            component: () => import('@/pages/oneKeyBill/people-manage-tax/index')
        },
        {
            name: 'peopleManageDetail',
            path: '/one-key-bill/people-manage-tax/people-manage-detail',
            component: () => import('@/pages/oneKeyBill/people-manage-detail/index')
        },
        // 一键报税-申报作废
        {
            name: 'declareToVoid',
            path: '/one-key-bill/declare-to-void',
            component: () => import('@/pages/oneKeyBill/declare-to-void/index')
        },
        // 一键报税-查看作废结果
        {
            path: '/one-key-bill/declare-to-void/check-invalid-result',
            name: 'checkInvalidReportResult',
            component: () => import('@/pages/oneKeyBill/declare-to-void/showPicture')
        },
        //一键报税-税金缴纳及凭证下载
        {
            path: '/one-key-bill/tax-declare-certificate-download',
            name: 'taxDeclareCertificateDownload',
            component: () => import('@/pages/oneKeyBill/tax-declare-certificate-download/index')
        },
        //一键报税-税金缴纳及凭证下载-详情页
        {
            path: '/one-key-bill/tax-declare-certificate-download',
            name: 'taxDeclareCertificateDownloadDetail',
            component: () => import('@/pages/oneKeyBill/tax-declare-certificate-download/index')
        },
        // {
        //     path: '/one-key-bill/tax-declare-certificate-download',
        //     name: 'taxDeclareCertificateDownload',
        //     component: () => import('@/pages/oneKeyBill/tax-declare-certificate-download/index')
        // },
        // 风险系统 / 开票金额风险
        {
            path: '/risk-sys/bills',
            component: () => import('@/pages/riskSys/bills')
        },
        // 风险系统 / 所得税风险
        {
            path: '/risk-sys/income-tax',
            component: () => import('@/pages/riskSys/incomeTax')
        },
        // 历史记录
        {
            path: '/history',
            component: () => import('@/pages/history/index')
        },
        // 历史记录
        {
            path: '/history/historyDetail',
            name: 'historyDetail',
            component: () => import('@/pages/history/detail')
        },
        // 自动化报税触发器
        {
            path: '/task',
            component: () => import('@/pages/task')
        },
        // 隐私声明
        {
            // /pages/privacyStatement?s=true
            path: '/privacyStatement',
            component: () => import('@/pages/privacyStatement')
        },
        // 用户协议
        {
            path: '/userAgreement',
            component: () => import('@/pages/userAgreement')
        },
        // 页面未找到
        {
            path: '/page-404',
            component: () => import('@/pages/page-404')
        },
        {
            path: '/manualcheck',
            component: () => import('@/pages/manualcheck/problematicBNames')
        }
    ]
});
